package cn.magicduck.demo.factory;

import java.util.concurrent.TimeUnit;

/**
 * @projectName: design-pattern-demo
 * @className: ICacheAdapter
 * @description: 缓存适配器接口
 * @author: MagicDuck
 * @create: 2020-07-17 13:52
 **/
public interface ICacheAdapter {

    String get(String key);

    void set(String key, String value);

    void set(String key, String value, long timeout, TimeUnit timeUnit);

    void del(String key);
}
